{extend name="Public:ajaxBase"/}

{block name="main"}
<div class="wrapper">
	<form id="myform" action="" method="post">
		<input type="hidden" id="id" name="id" value="{$udate['id']}" />
		<div class="form-group row">
			<label class="col-sm-2 text-right">上级</label>
			<div class="col-sm-10">
				<select class="form-control" name="pid">
					<option value="0">顶级分类</option>
					{$nodes}
				</select>
			</div>
		</div>
		<div class="form-group row">
			<label class="col-sm-2 text-right">标题</label>
			<div class="col-sm-10">
				<input type="text" name="title" class="form-control" value="{$udate['title']}"/>
			</div>
		</div>
		<div class="form-group row">
			<label class="col-sm-2 text-right">名称</label>
			<div class="col-sm-10">
				<input type="text" class="form-control" name="name" value="{$udate['name']}" />
			</div>
		</div>
		<div class="form-group row">
			<label class="col-sm-2 text-right">图标</label>
			<div class="col-sm-10">
				<div class="input-group input-groupp-md">
					<input type="text" class="form-control" id="icon" name="icon" value="{$udate['icon']}">
					<a href="javascript:;" class="btn-search-icon input-group-addon">搜索图标</a>
				</div>
			</div>
		</div>
		<div class="form-group row">
			<label class="col-sm-2 text-right">描述</label>
			<div class="col-sm-10">
				<textarea name="remark" class="form-control" rows="3" cols="40">{$udate['remark']}</textarea>
			</div>
		</div>

		<div class="form-group row">
			<label class="col-sm-2 text-right">菜单</label>
			<div class="col-sm-4">
				<input type="radio" name="ismenu" value="1" {eq name="udate['ismenu']" value="1"}checked="checked"{/eq} />是
				<input type="radio" name="ismenu" value="0" {eq name="udate['ismenu']" value="0"}checked="checked"{/eq} />否
			</div>
		</div>
		<div class="form-group row">
			<label class="col-sm-2 text-right">状态</label>
			<div class="col-sm-10">
				<input type="radio" name="status" value="1" {eq name="udate['status']" value="1"}checked="checked"{/eq} />启用
				<input type="radio" name="status" value="0" {eq name="udate['status']" value="0"}checked="checked"{/eq} />禁用
			</div>
		</div>
		<div class="form-group row">
			<div class="col-sm-10 offset-2">
				<button type="submit" class="btn btn-primary ajax_form_submit">提交</button>
				<button type="reset" class="btn btn-success">重置</button>
			</div>
		</div>
	</form>
</div>
{/block}